package com.yykj.tencent.im.server.common;

import lombok.Data;

/**
 * 响应
 */
@Data
public class ResponseVo {
    private String ActionStatus;
    private Integer ErrorCode;
    private String ErrorInfo;

    public static ResponseVo success() {
        ResponseVo responseVo = new ResponseVo();
        responseVo.setActionStatus("OK");
        responseVo.setErrorInfo("");
        responseVo.setErrorCode(0);
        return responseVo;
    }

    public static ResponseVo error(Integer errorCode) {
        ResponseVo responseVo = new ResponseVo();
        responseVo.setActionStatus("OK");
        responseVo.setErrorInfo("");
        responseVo.setErrorCode(errorCode);
        return responseVo;
    }

}
